import request from '@/utils/request'

// 查询观众列表
export function listAudience(query) {
  return request({
    url: '/system/audience/list',
    method: 'get',
    params: query
  })
}

// 查询观众详细
export function getAudience(id) {
  return request({
    url: '/system/audience/' + id,
    method: 'get'
  })
}

// 新增观众
export function addAudience(data) {
  return request({
    url: '/system/audience',
    method: 'post',
    data: data
  })
}

// 修改观众
export function updateAudience(data) {
  return request({
    url: '/system/audience',
    method: 'put',
    data: data
  })
}

// 删除观众
export function delAudience(id) {
  return request({
    url: '/system/audience/' + id,
    method: 'delete'
  })
}
